﻿using System.Collections.Generic;
using SilenthinkContract.Domain;

namespace Web.Manage.Models
{
    public static class ProductControllerModel
    {
        public class ProductVariantSaleAttribute
        {
            public string Code { get; set; }
            public decimal? Price { get; set; }
            public int? Quantity { get; set; }
        }

        public class Index
        {
            public string Name { get; set; }
            public IPagedList<Product> Products { get; set; }
        }
        public class Create
        {
            public string ProductCode { get; private set; }
            public string ProductCategoryCode { get; private set; }
            public IList<ProductAttributeName> ProductAttributeNames { get; set; }
            public IList<ProductAttributeValue> ProductAttributeValues { get; set; }
            public Create(string productCode, string categoryCode)
            {
                ProductCode = productCode;
                ProductCategoryCode = categoryCode;
            }
        }
        public class Detail
        {
            public Product Product { get; set; }
        }
    }
}